﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LordJS.Models;

namespace LordJS.Controllers
{
    public class CosmicController : Controller
    {
        public JsonResult MockCosmics()
        {
            IList<Cosmic> cosmics = new List<Cosmic>();
            cosmics.Add(new Cosmic { ImgSrc = "/Images/cover1.jpg", Title = "Spider Man", Year = 2010, Number = 1 });
            cosmics.Add(new Cosmic { ImgSrc = "/Images/cover2.jpg", Title = "X File", Year = 1996, Number = 2 });
            cosmics.Add(new Cosmic { ImgSrc = "/Images/cat.jpg", Title = "Cat Legend", Year = 2013, Number = 3 });
            cosmics.Add(new Cosmic { ImgSrc = "/Images/cover3.jpg", Title = "Transformer3", Year = 2013, Number = 4 });

            return Json(cosmics, JsonRequestBehavior.AllowGet);
        }
    }
}
